ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Video functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Starts decoding bar codes in a Camera control. You can specify the type of bar code to decode.
Example
// Starts decoding QRCode bar codes in the Camera control
CAM_Camera1.StartDecoding(BC_QRCODE)
Syntax
<Camera control>.StartDecoding([<Bar code type>])
<Camera control>: Control name
Name of the Camera control to be used.
<Bar code type>: Optional Integer constant
Type of bar codes that can be decoded:
BC_AZTECAztec bar code.
iPhone/iPad This type of bar code is available from iOS 7.
BC_CODE128Code128 bar code.
iPhone/iPad This type of bar code is available from iOS 7.
BC_CODE39Code39 bar code.
iPhone/iPad This type of bar code is available from iOS 7.
BC_CODE93Code93 bar code.
iPhone/iPad This type of bar code is available from iOS 7.
BC_DATAMATRIXDATAMATRIX bar code.
iPhone/iPad Not available.
BC_EAN13EAN13 bar code.
iPhone/iPad This type of bar code is available from iOS 7.
BC_EAN8EAN8 bar code.
iPhone/iPad This type of bar code is available from iOS 7.
BC_INTER2OF5Interleaved 2 of 5 bar code.
iPhone/iPad This type of bar code is available from iOS 7.
BC_PDF417PDF417 bar code.
iPhone/iPad This type of bar code is available from iOS 7.
BC_QRCODEQR Code bar code.
BC_UPCAUPC-A bar code.
iPhone/iPad Not available.
BC_UPCEUPC-E bar code.
iPhone/iPad This type of bar code is available from iOS 7.
BC_ALLAll the types of bar codes supported by this function can be decoded.

If this parameter is not specified:
  • the bar codes specified last time <Camera>.StartDecoding was called will be decoded.
  • the bar codes specified in the description window of Camera control will be decoded.
Remarks
  • The Camera control must have been configured to allow the decoding of bar codes (in the description window). Otherwise, the call to <Camera>.StartDecoding will trigger a fatal error.
  • When the Camera control is configured to allow the decoding of bar codes (in the description window), the decoding automatically starts when the window is opened. To prevent this behavior, <Camera>.StopDecoding can be called in the initialization event of the Camera control.
  • If <Camera>.StartDecoding is called when a decoding process is already in progress in the Camera control, the decoding process is stopped and then restarted to take into account the new type of bar code to decode. If the type of bar code is the same, the function has no effect.
  • When a bar code is detected, the "Decode a bar code" event of the Camera control is called with a BarCode variable as parameter, which corresponds to the detected bar code. If this event returns True, bar code decoding will be automatically stopped.
  • This function is equivalent to CameraStartDecoding.
Component: wd300android.aar
Minimum version required
  • Version 23
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help